// 创建对象的三种方式
const obj1 = {
  uname: 'cuifan',
  age: 20
}

const obj2 = new Object()
obj2.uname = 'cuifan'
obj2.age = 20


function CreateObj(uname, age) {
  this.uname = uname
  this.age = age
}
const obj3 = new CreateObj('cuifan', 20)

console.log(obj1);
console.log(obj2);
console.log(obj3); // 构造函数
for (let key in obj3) {
  console.log(key);
}